﻿using System;
using System.IO;
using System.Text.RegularExpressions;

class ReplaceSubstringStartWithFinish
{
    static void Main()
    {
        using (StreamReader input = new StreamReader("input.txt"))
        {
            using (StreamWriter output = new StreamWriter("output.txt"))
            {
                string currentLine;
                while ((currentLine = input.ReadLine()) != null)
                {
                    output.WriteLine(Regex.Replace(currentLine, "start", "finish"));
                }
            }
        }
    }
}